package com.example.springbootfoodsafety.service;

import com.example.springbootfoodsafety.entity.User;
import com.example.springbootfoodsafety.po.Article;
import com.example.springbootfoodsafety.po.Friends;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    /***
     * 根据用户获取到自己的全部文章
     * @param id
     * @return
     */
    public List<Article> getUserArticle(Integer id);

    /**
     * 修改用户
     * @param user
     * @return
     */
    public boolean modifyUser(User user);


    List<User> getUserFriends(Integer id);

    boolean addFriends(Integer masterId, Integer friendId);

}
